HighContrast: Update textview selection styling
authorMatthias Clasen <mclasen@redhat.com>
Wed, 11 Nov 2015 02:52:45 +0000 (21:52 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 11 Nov 2015 02:52:45 +0000 (21:52 -0500)
Use the selection element name.

gtk/theme/HighContrast/_common.scss
gtk/theme/HighContrast/gtk.css

index f19d6cf0c83d25a1bdd130b4cf1a82c6e475b3ab..c53b9a561e8dcd4e309dbca6c857a25811f04bb3 100644 (file)
@@ -113,9 +113,9 @@ textview text,
     color: $backdrop_fg_color;
     background-color: $backdrop_base_color;
   }
-  &:selected,
-  &:selected:focus,
-  &:selected:hover {
+  & selection,
+  & selection:focus,
+  & selection:hover {
     @extend %selected_items;
   }
 }
index 12b716d18adcb04351d7dae3568d80d5645972b6..954b89ab1a1dde5764ea1115145a7773ea23974c 100644 (file)
@@ -1995,13 +1995,10 @@ GtkLevelBar.vertical {
     .level-bar.fill-block.empty-fill-block:backdrop {
       border-color: rgba(0, 0, 0, 0.15); }
 
-textview text:selected, textview text:selected:focus, textview text:selected:hover,
-.view:selected,
-calendar:selected,
-.view:selected:focus,
-calendar:focus:selected,
-.view:selected:hover,
-calendar:hover:selected, label selection, label selection:focus, label selection:hover, label selection:backdrop, entry selection
+textview text selection, textview text selection:focus, textview text selection:hover,
+.view selection,
+.view selection:focus,
+.view selection:hover, label selection, label selection:focus, label selection:hover, label selection:backdrop, entry selection
 entry selection:focus, spinbutton selection
 entry selection:focus, entry selection
 spinbutton selection:focus, spinbutton selection
@@ -2011,17 +2008,14 @@ spinbutton selection:focus, modelbutton.flat:hover, modelbutton.flat:selected,
   background-color: #000;
   color: #fff;
   outline-color: rgba(255, 255, 255, 0.3); }
-  textview text:backdrop:selected,
-  .view:backdrop:selected,
-  calendar:backdrop:selected,
-  calendar:backdrop:focus:selected,
-  calendar:backdrop:hover:selected, label selection:backdrop, entry selection
+  textview text selection:backdrop,
+  .view selection:backdrop, label selection:backdrop, entry selection
   entry selection:backdrop:focus, spinbutton selection
   entry selection:backdrop:focus, entry selection
   spinbutton selection:backdrop:focus, spinbutton selection
   spinbutton selection:backdrop:focus, modelbutton.flat:backdrop:hover, modelbutton.flat:backdrop:selected,
   .menuitem.button.flat:backdrop:hover,
-  .menuitem.button.flat:backdrop:selected, .list-row.activatable:backdrop:selected, .sidebar:backdrop:selected {
+  .menuitem.button.flat:backdrop:selected, .list-row.activatable:backdrop:selected, .sidebar:backdrop:selected, placessidebar .view:backdrop:selected, placessidebar calendar:backdrop:selected {
     background-color: gray;
     color: #fff; }